import {messages} from "share/common";
import moment from 'moment';
import React from 'react';
import {Select} from 'antd';
import CheckCommon from './check-common';

const Option = Select.Option;

const common = {
  searchForm: function (type, opt) {
    opt.splice(0, 0, {label: messages('financial-management.key139'/*全部*/), value: 'All'});
    const FORM_OPTION = {
      air: this.searchFormPlane(opt),
      hotel: this.searchFormHotel(opt),
      train: this.searchFormTrain(opt),
      yget: this.searchFormTele(opt),
      car: this.searchFormCar(opt),
      dining: this.searchFormOrder(opt),
    }
    return FORM_OPTION[type];
  },

  payTypeOptions() {
    return [
      {label: messages('financial-management.key36'/*全部*/), value: 'All'},
      {label: messages('financial-management.key61'/*企业支付*/), value: '1002'},
      {label: messages('request.key232'/*个人支付*/), value: '1001'},
      // {label: messages('financial-management.key63'/*混合支付*/), value: '1003'},
    ]
  },

  tagParseFormat(value, arr) {
    let label = '';
    arr.map(item => {
      if (item.value === value) {
        label = item.label;
      }
    });
    return label;
  },

  getOrderTypeOption() {
    return [
      {label: messages('financial-management.key36'/*全部*/), value: 'All'},
      {label: messages('financial-management.key110'/*出票*/), value: 'TICKETED'},
      {label: messages('financial-management.key111'/*改签*/), value: 'REBOOKED'},
      {label: messages('financial-management.key112'/*退票*/), value: 'REFUNDED'}
    ]
  },

  getFeedStatus() {
    return [
      {label: messages('financial-management.key36'/*全部*/), value: 'All'},
      {label: messages('financial-management.key595')/*已生成*/, value: 1},
      {label: messages('financial-management.key593')/*未生成*/, value: 0},
    ]
  },

  searchFormPlane(opt) {
    const orderTypeOption = this.getOrderTypeOption();
    const startDate = CheckCommon.getNextMonth('', -3, true);
    const endDate = CheckCommon.getNextMonth('', 0, true);
    return [
      {
        component: 'Select',
        id: 'vendorName',
        props: {
          style: {width: '100%'},
        },
        label: messages('financial-management.key688')/*消费商*/,
        children: opt.map(item => <Option key={item.value}>{item.label}</Option>),
        initialValue: 'All',
        parser: value => ({
          vendorName: value === 'All' ? '' : value,
        }),
        tagParser: (value) => this.tagParseFormat(value, opt),
      } /*消费商*/,
      {
        component: 'Chooser',
        id: 'companyOID',
        label: messages('financial-management.key343')/*公司名称*/,
        props: {
          type: 'available_company',
          valueKey: 'companyOID',
          labelKey: 'name',
          single: true,
          onlyNeed: 'companyOID'
        },
        parser: value => ({
          companyOID: value && value.length > 0 ? value[0] : '',
        }),
      },
      {
        component: 'Input',
        label: messages('financial-management.key859')/*结算ID*/,
        id: 'recordId',
        props: {
          placeholder: messages('common.please.input')/*请输入*/,
        },
      },
      {
        component: 'DateRangePicker',
        id: 'approvalDate',
        label: messages('financial-management.key41'/*结算日期*/),
        initialValue: [moment(startDate), moment(endDate)],
        props: {
          placeholder: '请选择',
        },
        parser: value => ({
          startTime: (value && value[0]) ? value[0].format('YYYY-MM-DD') : '',
          endTime: (value && value[1]) ? value[1].format('YYYY-MM-DD') : '',
        })
      },
      {
        component: 'DateRangePicker',
        id: 'flyStartDate',
        label: messages('financial-management.key689')/*起飞日期*/,
        props: {
          placeholder: '请选择',
        },
        parser: value => ({
          takeOffStartTime: (value && value[0]) ? value[0].format('YYYY-MM-DD') : '',
          takeOffEndTime: (value && value[1]) ? value[1].format('YYYY-MM-DD') : '',
        })
      },
      {
        component: 'Select',
        label: messages('financial-management.key860')/*操作类型*/,
        id: 'orderType',
        initialValue: 'All',
        props: {
          style: {width: '100%'}
        },
        children: orderTypeOption.map(item => <Option key={item.value}>{item.label}</Option>),
        parser: value => ({
          orderType: value === 'All' ? '' : value,
        }),
        tagParser: (value) => this.tagParseFormat(value, orderTypeOption),
      },
      {
        component: 'Select',
        label: messages('financial-management.key764')/*费用状态*/,
        id: 'isArtInvoice',
        props: {
          style: {width: '100%'}
        },
        children: this.getFeedStatus().map(item => <Option key={item.value}>{item.label}</Option>),
        tagParser: (value) => this.tagParseFormat(value, this.getFeedStatus()),
        initialValue: 'All',
        parser: value => ({
          isArtInvoice: value === 'All' ? '' : value,
        }),
      },
      {
        component: 'Select',
        label: messages('financial-management.key60'/*支付类型*/), /*支付类型*/
        id: 'payType',
        initialValue: 'All',
        props: {
          style: {width: '100%'}
        },
        children: this.payTypeOptions().map(item => <Option key={item.value}>{item.label}</Option>),
        parser: value => ({
          payType: value === 'All' ? '' : value,
        }),
        tagParser: (value) => this.tagParseFormat(value, this.payTypeOptions()),
      },
      {
        component: 'Input',
        label: messages('financial-management.key113'/*批次号*/),
        id: 'checkBatchNo',
        props: {
          placeholder: messages('common.please.input')/*请输入*/,
        },
      },
      {
        component: 'Input',
        id: 'dcityName',
        label: messages('financial-management.key47'/*出发城市*/),
        props: {
          placeholder: messages('common.please.input')/*请输入*/,
        },
      },
      {
        component: 'Input',
        id: 'acityName',
        label: messages('financial-management.key48'/*到达城市*/),
        props: {
          placeholder: messages('common.please.input')/*请输入*/,
        },
      },
      {
        component: 'Input',
        label: messages('financial-management.key861')/*行程号/申请单号*/,
        id: 'journeyId',
        props: {
          placeholder: messages('common.please.input')/*请输入*/,
        },
      },
      {
        component: 'Input',
        label: messages('request.key110'/*订单号*/),
        id: 'orderNo',
        props: {
          placeholder: messages('common.please.input')/*请输入*/,
        },
      },
      {
        component: 'Input',
        id: 'passengerName',
        label: messages('financial-management.key691'), /*旅客姓名:*/
        props: {
          placeholder: messages('common.please.input')/*请输入*/,
        },
      },
    ]
  },

  searchFormHotel(opt) {
    const orderTypeOption = this.getOrderTypeOption();
    const startDate = CheckCommon.getNextMonth('', -3, true);
    const endDate = CheckCommon.getNextMonth('', 0, true);
    return [
      {
        component: 'Select',
        id: 'vendorName',
        props: {
          style: {width: '100%'},
        },
        label: messages('financial-management.key688')/*消费商*/,
        initialValue: 'All',
        parser: value => ({
          vendorName: value === 'All' ? '' : value,
        }),
        children: opt.map(item => <Option key={item.value}>{item.label}</Option>),
        tagParser: (value) => this.tagParseFormat(value, opt)
      } /*消费商*/,
      {
        component: 'Chooser',
        id: 'companyOID',
        label: messages('financial-management.key343')/*公司名称*/,
        props: {
          type: 'available_company',
          valueKey: 'companyOID',
          labelKey: 'name',
          single: true,
          onlyNeed: 'companyOID'
        },
        parser: value => ({
          companyOID: value && value.length > 0 ? value[0] : '',
        }),
      },
      {
        component: 'Input',
        label: messages('financial-management.key859')/*结算ID*/,
        id: 'recordId',
        props: {
          placeholder: messages('common.please.input')/*请输入*/,
        },
      },
      {
        component: 'DateRangePicker',
        id: 'approvalDate',
        label: messages('financial-management.key41'/*结算日期*/),
        initialValue: [moment(startDate), moment(endDate)],
        props: {
          placeholder: '请选择',
        },
        parser: value => ({
          startTime: (value && value[0]) ? value[0].format('YYYY-MM-DD') : '',
          endTime: (value && value[1]) ? value[1].format('YYYY-MM-DD') : '',
        })
      },
      {
        component: 'DateRangePicker',
        id: 'inDate',
        label: messages('request.key360'/*入住日期*/),
        props: {
          placeholder: '请选择',
        },
        parser: value => ({
          checkOutStartTime: (value && value[0]) ? value[0].format('YYYY-MM-DD') : '',
          checkOutEndTime: (value && value[1]) ? value[1].format('YYYY-MM-DD') : '',
        })
      },
      {
        component: 'DateRangePicker',
        id: 'outDate',
        label: messages('financial-management.key724')/*离店日期*/,
        props: {
          placeholder: '请选择',
        },
        parser: value => ({
          checkInStartTime: (value && value[0]) ? value[0].format('YYYY-MM-DD') : '',
          checkInEndTime: (value && value[1]) ? value[1].format('YYYY-MM-DD') : '',
        })
      },
      {
        component: 'Select',
        label: messages('financial-management.key860')/*操作类型*/, /*服务类型*/
        id: 'orderType',
        initialValue: 'All',
        props: {
          style: {width: '100%'}
        },
        children: orderTypeOption.map(item => <Option key={item.value}>{item.label}</Option>),
        parser: value => ({
          orderType: value === 'All' ? '' : value,
        }),
        tagParser: (value) => this.tagParseFormat(value, orderTypeOption)
      },
      {
        component: 'Select',
        label: messages('financial-management.key764')/*费用状态*/,
        id: 'isArtInvoice',
        props: {
          style: {width: '100%'}
        },
        children: this.getFeedStatus().map(item => <Option key={item.value}>{item.label}</Option>),
        initialValue: 'All',
        parser: value => ({
          isArtInvoice: value === 'All' ? '' : value,
        }),
        tagParser: (value) => this.tagParseFormat(value, this.getFeedStatus())
      },
      {
        component: 'Select',
        label: messages('financial-management.key60'/*支付类型*/), /*支付类型*/
        id: 'payType',
        initialValue: 'All',
        props: {
          style: {width: '100%'}
        },
        children: this.payTypeOptions().map(item => <Option key={item.value}>{item.label}</Option>),
        parser: value => ({
          payType: value === 'All' ? '' : value,
        }),
        tagParser: (value) => this.tagParseFormat(value, this.payTypeOptions())
      },
      {
        component: 'Input',
        label: messages('financial-management.key113'/*批次号*/),
        id: 'checkBatchNo',
        props: {
          placeholder: messages('common.please.input')/*请输入*/,
        },
      },
      {
        component: 'Input',
        label: messages('request.key357'/*入住城市*/),
        id: 'cityName',
        props: {
          placeholder: messages('common.please.input')/*请输入*/,
        },
      },
      {
        component: 'Input',
        label: messages('financial-management.key861')/*行程号/申请单号*/,
        id: 'journeyId',
        props: {
          placeholder: messages('common.please.input')/*请输入*/,
        },
      },
      {
        component: 'Input',
        label: messages('request.key110'/*订单号*/),
        id: 'orderNo',
        props: {
          placeholder: messages('common.please.input')/*请输入*/,
        },
      },
      {
        component: 'Input',
        id: 'clientNames',
        label: messages('financial-management.key691'), /*旅客姓名:*/
        props: {
          placeholder: messages('common.please.input')/*请输入*/,
        },
      },
    ]
  },

  searchFormTrain(opt) {
    const orderTypeOption = this.getOrderTypeOption();
    const startDate = CheckCommon.getNextMonth('', -3, true);
    const endDate = CheckCommon.getNextMonth('', 0, true);
    return [
      {
        component: 'Select',
        id: 'vendorName',
        props: {
          style: {width: '100%'},
        },
        label: messages('financial-management.key688')/*消费商*/,
        initialValue: 'All',
        parser: value => ({
          vendorName: value === 'All' ? '' : value,
        }),
        children: opt.map(item => <Option key={item.value}>{item.label}</Option>),
        tagParser: (value) => this.tagParseFormat(value, opt)
      } /*消费商*/,
      {
        component: 'Chooser',
        id: 'companyOID',
        label: messages('financial-management.key343')/*公司名称*/,
        props: {
          type: 'available_company',
          valueKey: 'companyOID',
          labelKey: 'name',
          single: true,
          onlyNeed: 'companyOID'
        },
        parser: value => ({
          companyOID: value && value.length > 0 ? value[0] : '',
        }),
      },
      {
        component: 'Input',
        label: messages('financial-management.key859')/*结算ID*/,
        id: 'recordId',
        props: {
          placeholder: messages('common.please.input')/*请输入*/,
        },
      },
      {
        component: 'DateRangePicker',
        id: 'approvalDate1',
        label: messages('financial-management.key41'/*结算日期*/),
        initialValue: [moment(startDate), moment(endDate)],
        props: {
          placeholder: '请选择',
        },
        parser: value => ({
          startTime: (value && value[0]) ? value[0].format('YYYY-MM-DD') : '',
          endTime: (value && value[1]) ? value[1].format('YYYY-MM-DD') : '',
        })
      },
      {
        component: 'DateRangePicker',
        id: 'approvalDate2',
        label: messages('components.key393'/*出发日期*/),
        props: {
          placeholder: '请选择',
        },
        parser: value => ({
          departureDateStartTime: (value && value[0]) ? value[0].format('YYYY-MM-DD') : '',
          departureDateEndTime: (value && value[1]) ? value[1].format('YYYY-MM-DD') : '',
        })
      },
      {
        component: 'Select',
        label: messages('financial-management.key860')/*操作类型*/, /*服务类型*/
        id: 'orderType',
        initialValue: 'All',
        props: {
          style: {width: '100%'}
        },
        children: orderTypeOption.map(item => <Option key={item.value}>{item.label}</Option>),
        parser: value => ({
          orderType: value === 'All' ? '' : value,
        }),
        tagParser: (value) => this.tagParseFormat(value, orderTypeOption)
      },
      {
        component: 'Select',
        label: messages('financial-management.key764')/*费用状态*/,
        id: 'isArtInvoice',
        props: {
          style: {width: '100%'}
        },
        children: this.getFeedStatus().map(item => <Option key={item.value}>{item.label}</Option>),
        initialValue: 'All',
        parser: value => ({
          isArtInvoice: value === 'All' ? '' : value,
        }),
        tagParser: (value) => this.tagParseFormat(value, this.getFeedStatus())
      },
      {
        component: 'Select',
        label: messages('financial-management.key60'/*支付类型*/), /*支付类型*/
        id: 'payType',
        initialValue: 'All',
        props: {
          style: {width: '100%'}
        },
        children: this.payTypeOptions().map(item => <Option key={item.value}>{item.label}</Option>),
        parser: value => ({
          payType: value === 'All' ? '' : value,
        }),
        tagParser: (value) => this.tagParseFormat(value, this.payTypeOptions())
      },
      {
        component: 'Input',
        label: messages('financial-management.key113'/*批次号*/),
        id: 'checkBatchNo',
        props: {
          placeholder: messages('common.please.input')/*请输入*/,
        },
      },
      {
        component: 'Input',
        id: 'departureCityName',
        label: messages('financial-management.key47'/*出发城市*/),
        props: {
          placeholder: messages('common.please.input')/*请输入*/,
        },
      },
      {
        component: 'Input',
        id: 'arrivalCityName',
        label: messages('financial-management.key48'/*到达城市*/),
        props: {
          placeholder: messages('common.please.input')/*请输入*/,
        },
      },
      {
        component: 'Input',
        label: messages('financial-management.key861')/*行程号/申请单号*/,
        id: 'journeyId',
        props: {
          placeholder: messages('common.please.input')/*请输入*/,
        },
      },
      {
        component: 'Input',
        label: messages('request.key110'/*订单号*/),
        id: 'orderNo',
        props: {
          placeholder: messages('common.please.input')/*请输入*/,
        },
      },
      {
        component: 'Input',
        id: 'passengerName',
        label: messages('financial-management.key691'), /*旅客姓名:*/
        props: {
          placeholder: messages('common.please.input')/*请输入*/,
        },
      },
    ]
  },

  searchFormTele: function (opt) {
    const startDate = CheckCommon.getNextMonth('', -3, true);
    const endDate = CheckCommon.getNextMonth('', 0, true);
    return [
      {
        component: 'Select',
        id: 'vendorName',
        props: {
          style: {width: '100%'},
        },
        label: messages('financial-management.key688')/*消费商*/,
        initialValue: 'All',
        parser: value => ({
          vendorName: value === 'All' ? '' : value,
        }),
        children: opt.map(item => <Option key={item.value}>{item.label}</Option>),
        tagParser: (value) => this.tagParseFormat(value, opt)
      } /*消费商*/,
      {
        component: 'Chooser',
        id: 'companyOID',
        label: messages('financial-management.key343')/*公司名称*/,
        props: {
          type: 'available_company',
          valueKey: 'companyOID',
          labelKey: 'name',
          single: true,
          onlyNeed: 'companyOID'
        },
        parser: value => ({
          companyOID: value && value.length > 0 ? value[0] : '',
        }),
      },
      {
        component: 'Input',
        label: messages('financial-management.key859')/*结算ID*/,
        id: 'recordId',
        props: {
          placeholder: messages('common.please.input')/*请输入*/,
        },
      },
      {
        component: 'Input',
        label: messages('request.key110'/*订单号*/),
        id: 'orderNo',
        props: {
          placeholder: messages('common.please.input')/*请输入*/,
        },
      },
      {
        component: 'DateRangePicker',
        id: 'approvalDate',
        label: messages('financial-management.key58'/*订单日期*/),
        initialValue: [moment(startDate), moment(endDate)],
        props: {
          placeholder: '请选择',
        },
        parser: value => ({
          orderCreateStartTime: (value && value[0]) ? value[0].format('YYYY-MM-DD') : '',
          orderCreateEndTime: (value && value[1]) ? value[1].format('YYYY-MM-DD') : '',
        })
      },
      {
        component: 'Select',
        label: messages('financial-management.key764')/*费用状态*/,
        id: 'isArtInvoice',
        props: {
          style: {width: '100%'}
        },
        children: this.getFeedStatus().map(item => <Option key={item.value}>{item.label}</Option>),
        initialValue: 'All',
        parser: value => ({
          isArtInvoice: value === 'All' ? '' : value,
        }),
        tagParser: (value) => this.tagParseFormat(value, this.getFeedStatus())
      },
      // {
      //   component: 'Input',
      //   id: 'passengerName',
      //   label: messages('financial-management.key516')/*姓名*/,
      //   props: {
      //     placeholder: messages('common.please.input')/*请输入*/,
      //   },
      // },
    ]
  },

  searchFormCar: function (opt) {
    const payTypeOption = this.payTypeOptions().concat([{
      label: messages('financial-management.key63'/*混合支付*/),
      value: '1003'
    }]);
    const startDate = CheckCommon.getNextMonth('', -3, true);
    const endDate = CheckCommon.getNextMonth('', 0, true);
    return [
      {
        component: 'Select',
        id: 'vendorName',
        props: {
          style: {width: '100%'},
        },
        label: messages('financial-management.key688')/*消费商*/,
        initialValue: 'All',
        parser: value => ({
          vendorName: value === 'All' ? '' : value,
        }),
        children: opt.map(item => <Option key={item.value}>{item.label}</Option>),
        tagParser: (value) => this.tagParseFormat(value, opt)
      } /*消费商*/,
      {
        component: 'Chooser',
        id: 'companyOID',
        label: messages('financial-management.key343')/*公司名称*/,
        props: {
          type: 'available_company',
          valueKey: 'companyOID',
          labelKey: 'name',
          single: true,
          onlyNeed: 'companyOID'
        },
        parser: value => ({
          companyOID: value && value.length > 0 ? value[0] : '',
        }),
      },
      {
        component: 'Input',
        label: messages('request.key110'/*订单号*/),
        id: 'orderNo',
        props: {
          placeholder: messages('common.please.input')/*请输入*/,
        },
      },
      {
        component: 'DateRangePicker',
        id: 'payDate',
        label: messages('pay.key58'/*支付日期*/),
        initialValue: [moment(startDate), moment(endDate)],
        props: {
          placeholder: '请选择',
        },
        parser: value => ({
          payStartTime: (value && value[0]) ? value[0].format('YYYY-MM-DD') : '',
          payEndTime: (value && value[1]) ? value[1].format('YYYY-MM-DD') : '',
        })
      },
      {
        component: 'DateRangePicker',
        id: 'orderDate',
        label: messages('financial-management.key58'/*订单日期*/),
        props: {
          placeholder: '请选择',
        },
        parser: value => ({
          startTime: (value && value[0]) ? value[0].format('YYYY-MM-DD') : '',
          endTime: (value && value[1]) ? value[1].format('YYYY-MM-DD') : '',
        })
      },
      {
        component: 'Select',
        label: messages('financial-management.key764')/*费用状态*/,
        id: 'isArtInvoice',
        props: {
          style: {width: '100%'}
        },
        children: this.getFeedStatus().map(item => <Option key={item.value}>{item.label}</Option>),
        initialValue: 'All',
        parser: value => ({
          isArtInvoice: value === 'All' ? '' : value,
        }),
        tagParser: (value) => this.tagParseFormat(value, this.getFeedStatus())
      },
      {
        component: 'Select',
        label: messages('financial-management.key60'/*支付类型*/), /*支付类型*/
        id: 'payType',
        initialValue: 'All',
        props: {
          style: {width: '100%'}
        },
        children: payTypeOption.map(item => <Option key={item.value}>{item.label}</Option>),
        parser: value => ({
          payType: value === 'All' ? '' : value,
        }),
        tagParser: (value) => this.tagParseFormat(value, payTypeOption)
      },
      {
        component: 'Input',
        id: 'city',
        label: messages('financial-management.key693')/*出行城市*/,
        props: {
          placeholder: messages('common.please.input')/*请输入*/,
        },
      },
      {
        component: 'Input',
        label: messages('financial-management.key861')/*行程号/申请单号*/,
        id: 'journeyId',
        props: {
          placeholder: messages('common.please.input')/*请输入*/,
        },
      },
      // {
      //   component: 'Input',
      //   id: 'passengerName',
      //   label: messages('financial-management.key691'),/*旅客姓名:*/
      //   props: {
      //     placeholder: messages('common.please.input')/*请输入*/,
      //   },
      // },
    ]
  },

  searchFormOrder: function (opt) {
    const startDate = CheckCommon.getNextMonth('', -3, true);
    const endDate = CheckCommon.getNextMonth('', 0, true);
    return [
      {
        component: 'Select',
        id: 'vendorName',
        props: {
          style: {width: '100%'},
        },
        label: messages('financial-management.key688')/*消费商*/,
        initialValue: 'All',
        parser: value => ({
          vendorName: value === 'All' ? '' : value,
        }),
        children: opt.map(item => <Option key={item.value}>{item.label}</Option>),
        tagParser: (value) => this.tagParseFormat(value, opt)
      } /*消费商*/,
      {
        component: 'Chooser',
        id: 'companyOID',
        label: messages('financial-management.key343')/*公司名称*/,
        props: {
          type: 'available_company',
          valueKey: 'companyOID',
          labelKey: 'name',
          single: true,
          onlyNeed: 'companyOID'
        },
        parser: value => ({
          companyOID: value && value.length > 0 ? value[0] : '',
        }),
      },
      {
        component: 'Input',
        label: messages('request.key110'/*订单号*/),
        id: 'orderNo',
        props: {
          placeholder: messages('common.please.input')/*请输入*/,
        },
      },
      {
        component: 'DateRangePicker',
        id: 'orderDate',
        label: messages('financial-management.key58'/*订单日期*/),
        initialValue: [moment(startDate), moment(endDate)],
        props: {
          placeholder: '请选择',
        },
        parser: value => ({
          orderDateStart: (value && value[0]) ? value[0].format('YYYY-MM-DD') : '',
          orderDateEnd: (value && value[1]) ? value[1].format('YYYY-MM-DD') : '',
        })
      },
      {
        component: 'Select',
        label: messages('financial-management.key764')/*费用状态*/,
        id: 'isArtInvoice',
        props: {
          style: {width: '100%'}
        },
        children: this.getFeedStatus().map(item => <Option key={item.value}>{item.label}</Option>),
        initialValue: 'All',
        parser: value => ({
          isArtInvoice: value === 'All' ? '' : value,
        }),
        tagParser: (value) => this.tagParseFormat(value, this.getFeedStatus())
      },
      {
        component: 'Select',
        label: messages('financial-management.key60'/*支付类型*/), /*支付类型*/
        id: 'payType',
        initialValue: 'All',
        props: {
          style: {width: '100%'}
        },
        children: this.payTypeOptions().map(item => <Option key={item.value}>{item.label}</Option>),
        parser: value => ({
          payType: value === 'All' ? '' : value,
        }),
        tagParser: (value) => this.tagParseFormat(value, this.payTypeOptions())
      },
      {
        component: 'Input',
        label: messages('financial-management.key861')/*行程号/申请单号*/,
        id: 'journeyId',
        props: {
          placeholder: messages('common.please.input')/*请输入*/,
        },
      },
      // {
      //   component: 'Input',
      //   id: 'passengerName',
      //   label: messages('financial-management.key822')/*预订人姓名*/,
      //   props: {
      //     placeholder: messages('common.please.input')/*请输入*/,
      //   },
      // },
    ]
  },

};
export default common
